package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.TProdRecord;
import com.ruoyi.system.domain.dto.TProdRecordDTO;
import com.ruoyi.system.domain.vo.PieVO;
import com.ruoyi.system.domain.vo.ProdYearTotalVO;
import com.ruoyi.system.domain.vo.TProdRecordVO;
import com.ruoyi.system.domain.vo.TProdTaskVO;

import java.util.List;

/**
 * @author wux
 * @date 2023/5/30 9:40
 */
public interface ITProdRecordService extends IService<TProdRecord> {
    List<TProdRecordVO> listByPage(TProdRecordDTO params);

    void add(TProdRecord params);

    TProdTaskVO getRecordByProdId(Long prodId);

    int sumRecord(Long id);

    int sumYearRecord(Long projectId);

    int sumMonthRecord(Long projectId);

    int sumDayRecord(Long projectId);

    List<PieVO> groupProd(Long projectId);

    List<ProdYearTotalVO> groupYear(Long projectId);

    List<PieVO> groupMonth(Long projectId, String year);

    List<PieVO> groupDay(Long projectId, String monthDate);

    int sumXYearRecord(Long projectId, String year);

    int sumXMonthRecord(Long projectId, String monthDate);


}
